﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin3.master" AutoEventWireup="true" CodeFile="AddProduct.aspx.cs" Inherits="Admin_AddProduct" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 387px;
        }
        .style2
        {
            width: 872px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="margin-left: 10px"><table border="0" width="100%" cellpadding="0" cellspacing="0">
	<tr valign="top">
	<td class="style2">
	
	
		<!--  start step-holder -->
		
		<!--  end step-holder -->
	
		<!-- start id-form -->
        <fieldset>
        <legend style="text-align:left;font:18px bold; color:Black; margin-right: 10px;">Chi Ti&#7871;t S&#7843;n Ph&#7849;m</legend>
		<div style="margin-left: 10px"><table border="0" cellpadding="0" cellspacing="0"  id="id-form">
        <tr>
			<th valign="top">Mã Sản Phẩm :</th>
			<td class="style1">
                <asp:TextBox ID="txtMaSP" runat="server" Height="25px" Width="186px" 
                    CssClass="inp-form"></asp:TextBox>
            </td>
			<td align="center">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="txtMaSP" ErrorMessage="Mã sản phẩm không được rỗng" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
		</tr>
		<tr>
			<th valign="top">Tên Sản Phẩm :</th>
			<td class="style1">
                <asp:TextBox ID="txtTenSanPham" runat="server" Height="25px" Width="186px" 
                    CssClass="inp-form"></asp:TextBox>
            </td>
			<td align="center">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtTenSanPham" ErrorMessage="Tên sản phẩm không được rỗng" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
		</tr>
		<tr>
			<th valign="top">Loại Sản Phẩm:</th>
            
			<td class="style1"><asp:DropDownList class="styledselect_form_1" ID="dlLoaiSanPham" 
                    runat="server" CssClass="styledselect_form_1">
            </asp:DropDownList></td>
			<td align="center">
			
			    &nbsp;</td>
		</tr>
		<tr>
		<th valign="top">Giá:</th>
		<td class="style1">	
		<%--<select  class="styledselect_form_1">
			<option value="">All</option>
			<option value="">Products</option>
			<option value="">Categories</option>
			<option value="">Clients</option>
			<option value="">News</option>
		</select>--%>
            <asp:TextBox ID="txtGia" runat="server" Height="25px" Width="186px" 
                CssClass="inp-form"></asp:TextBox>
&nbsp;</td>
		<td align="center" style="padding: 2px">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtGia" ErrorMessage="Giá không đươc rỗng" ForeColor="Red"></asp:RequiredFieldValidator>
            <br />
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtGia" 
                ErrorMessage="Giá phải là số dương" ForeColor="Red" 
                ValidationExpression="\d{1,10}"></asp:RegularExpressionValidator>
            &nbsp;<asp:RangeValidator ID="RangeValidator1" runat="server" 
                ControlToValidate="txtGia" ErrorMessage="Giá không được bằng 0" ForeColor="Red" 
                MaximumValue="100000000" MinimumValue="1" Type="Integer"></asp:RangeValidator>
            </td>
		</tr>
        <tr>
		<th valign="top">Số Lượng :</th>
		<td class="style1">	
		<%--<select  class="styledselect_form_1">
			<option value="">All</option>
			<option value="">Products</option>
			<option value="">Categories</option>
			<option value="">Clients</option>
			<option value="">News</option>
		</select>--%>
            <asp:TextBox ID="txtSoLuong" runat="server" Height="25px" Width="186px" 
                CssClass="inp-form">1</asp:TextBox>
&nbsp;</td>
		<td align="center" style="padding: 2px">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtSoLuong" ErrorMessage="Số lượng không được rỗng" 
                ForeColor="Red"></asp:RequiredFieldValidator>
            <br />
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ControlToValidate="txtSoLuong" ErrorMessage="Số lượng phải là số dương " 
                ForeColor="Red" ValidationExpression="\d{1,10}"></asp:RegularExpressionValidator>
            <asp:RangeValidator ID="RangeValidator2" runat="server" 
                ControlToValidate="txtSoLuong" ErrorMessage="Số lượng không được bằng 0" 
                ForeColor="Red" MaximumValue="100000000" MinimumValue="1" Type="Integer"></asp:RangeValidator>
            </td>
		</tr>
        <tr>
		<th valign="top">Dành Cho Độ Tuổi :</th>
		<td class="style1">	
		<%--<select  class="styledselect_form_1">
			<option value="">All</option>
			<option value="">Products</option>
			<option value="">Categories</option>
			<option value="">Clients</option>
			<option value="">News</option>
		</select>--%>
            <asp:TextBox ID="txtDoTuoi" runat="server" Height="25px" Width="186px" 
                CssClass="inp-form">0</asp:TextBox>
&nbsp;</td>
		<td align="center" style="padding: 2px">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="txtDoTuoi" ErrorMessage="Độ tuổi không được rỗng" 
                ForeColor="Red"></asp:RequiredFieldValidator>
            <br />
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                ControlToValidate="txtDoTuoi" ErrorMessage="Độ tuổi phải là số dương " 
                ForeColor="Red" ValidationExpression="\d{1,10}"></asp:RegularExpressionValidator>
            <asp:RangeValidator ID="RangeValidator3" runat="server" 
                ControlToValidate="txtDoTuoi" ErrorMessage="Độ tuổi không được nhỏ hỏn 0" 
                ForeColor="Red" MaximumValue="100" MinimumValue="0" Type="Integer"></asp:RangeValidator>
            </td>
		</tr>
        <tr>
		<th valign="top">Dành Cho Giới Tính :</th>
		<td class="style1">	
		    <asp:DropDownList class="styledselect_form_1" ID="dlGioiTinh" runat="server" 
                CssClass="styledselect_form_1">
                <asp:ListItem>Nam</asp:ListItem>
                <asp:ListItem>Nữ</asp:ListItem>
                <asp:ListItem>Nam Và Nữ</asp:ListItem>
            </asp:DropDownList>&nbsp;</td>
		<td align="center"></td>
		</tr>
        <tr>
		<th valign="top">Ngày Đăng :</th>
		<td class="noheight" style="width: 387px">
		
			<table border="0" cellpadding="0" cellspacing="0">
			<tr  valign="top">
				<td>
				<form id="chooseDateForm" action="#">
				
				<asp:DropDownList ID="dlNgay" runat="server" CssClass="styledselect-day">
                </asp:DropDownList>
&nbsp;</td>
				<td>
					<asp:DropDownList ID="dlThang" runat="server" 
                        CssClass="styledselect-month">
                    </asp:DropDownList>
&nbsp;</td>
				<td>
					
					</form>
				    <asp:DropDownList ID="dlNam" runat="server" 
                        CssClass="styledselect-year">
                    </asp:DropDownList>
				</td>
				<td>
                    &nbsp;</td>
			</tr>
			</table>
		
		</td>
		<td align="center" style="padding: 2px">
            <br />
            <asp:Label ID="lbNgay" runat="server" ForeColor="Red"></asp:Label>
            </td>
	</tr>
    <tr>
	<th>Hình ảnh :
	<td class="style1">
        <asp:FileUpload ID="fHinhAnh" runat="server" Height="28px" Width="225px"  />
        </td>
	<td align="left">
	<div class="bubble-left"></div>
	<div class="bubble-inner">Dung lượng tối đa là 5 MB.</div>
	<div class="bubble-right"></div>
	    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
            ControlToValidate="fHinhAnh" ErrorMessage="Hình ảnh không được rỗng" 
            ForeColor="Red"></asp:RequiredFieldValidator>
	    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lbLoiHinh" runat="server" ForeColor="Red"></asp:Label>
        <asp:RegularExpressionValidator ID="regularFileHinh4" runat="server" 
                                ControlToValidate="fHinhAnh" 
            ErrorMessage="Không phải file ảnh" ForeColor="Red" 
                                
            ValidationExpression="^([0-9a-zA-Z_\-~ :\\])+(.jpg|.JPG|.jpeg|.JPEG|.bmp|.BMP|.gif|.GIF|.png|.PNG)$"></asp:RegularExpressionValidator>
	</td>
	</tr>
		<tr>
		<th valign="top">Nơi Sản Xuất:</th>
		<td class="style1">	
		    <asp:DropDownList class="styledselect_form_1" ID="dlNoiSX" runat="server" 
                CssClass="styledselect_form_1">
                <asp:ListItem>Việt Nam</asp:ListItem>
                <asp:ListItem>Trung Quốc</asp:ListItem>
                <asp:ListItem>Hàn Quốc</asp:ListItem>
                <asp:ListItem>Thái Lan</asp:ListItem>
                <asp:ListItem>USA</asp:ListItem>
            </asp:DropDownList>&nbsp;</td>
		<td align="center"></td>
		</tr> 
		
		
	<tr>
		<th valign="top">Chi Tiết Sản Phẩm:</th>
		<td class="style1">
            <asp:TextBox ID="txtchiTietSP" runat="server" Height="97px" 
                TextMode="MultiLine" Width="378px" CssClass="form-textarea"></asp:TextBox>
        </td>
		<td align="center">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="txtchiTietSP" 
                ErrorMessage="Chi tiết sản phẩm không được rỗng" ForeColor="Red"></asp:RequiredFieldValidator>
        </td>
	</tr>
	
	
	
	<tr>
		<th>&nbsp;</th>
		<td valign="top" class="style1">
            <asp:ImageButton ID="ImageButton1" runat="server" 
                ImageUrl="~/Admin/images/forms/Chap nhan1.gif" 
                onclick="ImageButton1_Click" />&nbsp;&nbsp;</td>
		<td align="center"></td>
	</tr>
	</table></div>
    </fieldset>
	<!-- end id-form  -->

	</td>
	
</tr>
<tr>
<td class="style2"><img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
<td></td>
</tr>
</table>
</div>
</asp:Content>

